#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QListWidget>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private:
    Ui::Widget *ui;
    QListWidget *list;
    QString name[4] = {"开启", "关闭", "扫描", "连接"};

private slots:
    void ButtonsClicked(int);
    void ListItemClicked(QListWidgetItem *);

};

#endif // WIDGET_H
